<?php foreach($comments as $comment): ?>
<div class="comment" id="c<?php echo $comment->id; ?>">

    <?php echo CHtml::link("#{$comment->id}", $comment->getUrl($issue), array(
        'class'=>'cid',
        'title'=>Yii::t('site','Permalink to this comment'),
    )); ?>

    <div class="author">
        <?php echo Yii::t('site','{author} said:',array('{author}'=>User::model()->findByPk($comment->authorId)->recordName)); ?>
    </div>

    <div class="time">
        <?php echo Yii::app()->dateFormatter->formatDateTime($comment->create_time,'medium','short'); ?>
    </div>

    <div class="content">
        <?php echo nl2br(CHtml::encode($comment->content)); ?>
    </div>

</div><!-- comment -->
<?php endforeach; ?>
